package cn.com.csg.smartenergy.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MqttConfig {

    public static String host;

    public static String username;

    public static String password;

    @Value("${mqtt.broker.host}")
    public void setHost(String host) {
        MqttConfig.host = host;
    }

    @Value("${mqtt.broker.username}")
    public void setUsername(String username) {
        MqttConfig.username = username;
    }

    @Value("${mqtt.broker.password}")
    public void setPassword(String password) {
        MqttConfig.password = password;
    }
}
